<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCompanyUploadTask extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('company_upload_task', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('author_id')->comment('创建人');
            $table->string('name', 65)->comment('任务名称');
            $table->string('path')->comment('文件路径');
            $table->unsignedInteger('entry')->default(0)->comment('发布内容总条目');
            $table->unsignedInteger('num')->default(0)->comment('发布数量');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('company_upload_task');
    }
}
